package com.xiaoyu.izf.service;

import com.xiaoyu.izf.model.Vocation;
import com.xiaoyu.izf.repository.VocationDao;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class VocationService {

    @Autowired
    private VocationDao vocationDao;

    public List<Vocation> findByParentId(int parentId){
        return vocationDao.findByParentId(parentId);
    }

    public Vocation findByVocationId(int vocationId){
        return vocationDao.findByVocationId(vocationId);
    }
}
